package weixin;

import weixin.utils.WXPublicUtils;

/**
 * @author zds
 * @version 1.0
 * @date 2020/5/27 9:57
 * @description 微信公众号 api 接口
 */
public class WeChatApi {

    /**
     * 鉴权
     */
    public static String accessTokemUrl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=";
    /**
     * 获得jsapi_ticket
     */
    public static String jsapiTicketUrl = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=";

    /**
     * 小程序登录凭证校验
     */
    public static String jscode2session = "https://api.weixin.qq.com/sns/jscode2session?appid=" + WXPublicUtils.APPID + "&secret=" + WXPublicUtils.APPSECRET + "&js_code=";
}
